package com.gjy.liteflow.flow;

import com.yomahub.liteflow.core.NodeBreakComponent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-09-08 15:54:41
 */
@Component(value = "n")
@Slf4j
public class NCmp extends NodeBreakComponent {
    @Override
    public boolean processBreak() throws Exception {
        // 获取 迭代循环组件的当前值
        Object o = this.getCurrLoopObj();
        // 获取 次数循环组件 和 条件循环组件 的当前下标值
        Integer loopIndex = this.getLoopIndex();
        return true;
    }
}
